package com.xpc.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * Project：CourseProject
 * Date：2022/4/13
 * Time：12:45
 * Description：用户类
 *
 * @author 南北辰的键盘
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@SuppressWarnings("serial")
public class User {
    @TableId(value = "user_id")
    private Long userId;
    private String nickname;
    private String headPortrait;
    private String name;
    private Integer gender;
    private String password;
    private String salt;
    private Integer positionState;

    public User(Long userId, Integer positionState) {
        this.userId = userId;
        this.positionState = positionState;
    }
}
